package com.example.studentportrait.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.studentportrait.domain.ResponseResult;
import com.example.studentportrait.domain.dto.AnnouncementListDto;
import com.example.studentportrait.domain.entity.Announcement;

import java.util.List;

public interface AnnouncementService extends IService<Announcement> {
    ResponseResult announcementList(Integer pageNum, Integer pageSize, AnnouncementListDto announcementListDto);

    ResponseResult addAnnouncement(Announcement announcement);

    ResponseResult deleteAnnouncement(Long id);

    ResponseResult<Announcement> updateAnnouncementById(Announcement announcement);

    ResponseResult deleteAnnouncementIds(List<Long> ids);
}
